package com.spring.vencent.service.impl;

import java.util.Date;

import javax.naming.NamingException;
import javax.naming.Reference;
import javax.naming.Referenceable;

import com.spring.vencent.factory.LogServiceFactory;
import com.spring.vencent.service.LogService;

public class LogServiceImpl implements Referenceable, LogService {

	@Override
	public void log(String message) {
		System.out.println(new Date() + message);
	}

	@Override
	public Reference getReference() throws NamingException {
		Reference ref = new Reference(getClass().getName(), LogServiceFactory.class.getName(), null);
		return ref;
	}

}
